package xh.lumt.server.commands;

/**
 * Created by Administrator on 2016/6/25.
 */
public enum PlayerOperation {

    Play, Pause, Volume;

    public static PlayerOperation from(String name) {
        for (PlayerOperation p : values()) {

            if (p.name().toUpperCase().equals(name.toUpperCase())) {
                return p;
            }
        }
        return null;
    }
}
